﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_Sys_ExamPlaceSpecialityKindsGroupMapping 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_Sys_ExamPlaceSpecialityKindsGroupMapping : Entity
    {
        public TB_Sys_ExamPlaceSpecialityKindsGroupMapping() : base("TB_Sys_ExamPlaceSpecialityKindsGroupMapping") { }

        #region Model
        private string _ExamPlaceSpecialityKindsMappingID;
        private string _GroupNo;
        private string _GroupName;
        private int _ExamLevel;
        private string _ExamPlaceNO;
        private string _SpecialityKindsNO;
        private string _Sort;
        private int? _TotalAcount;
        private int? _ActualAcount;
        private int? _OpenAcount;
        private string _IsActive;
        private string _BeginNum;
        private string _NORecord;
        private string _ExamYear;
        private string _LotNo_Prefix;
        private int? _LotNo_Len;
        /// <summary>
        /// 考点-专业映射表主键
        /// </summary>
        public string ExamPlaceSpecialityKindsMappingID
        {
            get { return _ExamPlaceSpecialityKindsMappingID; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceSpecialityKindsMappingID, _ExamPlaceSpecialityKindsMappingID, value);
                this._ExamPlaceSpecialityKindsMappingID = value;
            }
        }
        /// <summary>
        /// 考试时间段编号
        /// </summary>
        public string GroupNo
        {
            get { return _GroupNo; }
            set
            {
                this.OnPropertyValueChange(_.GroupNo, _GroupNo, value);
                this._GroupNo = value;
            }
        }
        /// <summary>
        /// 考试时间段名称
        /// </summary>
        public string GroupName
        {
            get { return _GroupName; }
            set
            {
                this.OnPropertyValueChange(_.GroupName, _GroupName, value);
                this._GroupName = value;
            }
        }
        /// <summary>
        /// 考试级别
        /// </summary>
        public int ExamLevel
        {
            get { return _ExamLevel; }
            set
            {
                this.OnPropertyValueChange(_.ExamLevel, _ExamLevel, value);
                this._ExamLevel = value;
            }
        }
        /// <summary>
        /// 考点编码
        /// </summary>
        public string ExamPlaceNO
        {
            get { return _ExamPlaceNO; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceNO, _ExamPlaceNO, value);
                this._ExamPlaceNO = value;
            }
        }
        /// <summary>
        /// 专业编码
        /// </summary>
        public string SpecialityKindsNO
        {
            get { return _SpecialityKindsNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKindsNO, _SpecialityKindsNO, value);
                this._SpecialityKindsNO = value;
            }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public string Sort
        {
            get { return _Sort; }
            set
            {
                this.OnPropertyValueChange(_.Sort, _Sort, value);
                this._Sort = value;
            }
        }
        /// <summary>
        /// 最大考试人数
        /// </summary>
        public int? TotalAcount
        {
            get { return _TotalAcount; }
            set
            {
                this.OnPropertyValueChange(_.TotalAcount, _TotalAcount, value);
                this._TotalAcount = value;
            }
        }
        /// <summary>
        /// 实际考试人数
        /// </summary>
        public int? ActualAcount
        {
            get { return _ActualAcount; }
            set
            {
                this.OnPropertyValueChange(_.ActualAcount, _ActualAcount, value);
                this._ActualAcount = value;
            }
        }
        /// <summary>
        /// 开放人数
        /// </summary>
        public int? OpenAcount
        {
            get { return _OpenAcount; }
            set
            {
                this.OnPropertyValueChange(_.OpenAcount, _OpenAcount, value);
                this._OpenAcount = value;
            }
        }
        /// <summary>
        /// 是否开放
        /// </summary>
        public string IsActive
        {
            get { return _IsActive; }
            set
            {
                this.OnPropertyValueChange(_.IsActive, _IsActive, value);
                this._IsActive = value;
            }
        }
        /// <summary>
        /// 抽签初始序号
        /// </summary>
        public string BeginNum
        {
            get { return _BeginNum; }
            set
            {
                this.OnPropertyValueChange(_.BeginNum, _BeginNum, value);
                this._BeginNum = value;
            }
        }
        /// <summary>
        /// 抽签号
        /// </summary>
        public string NORecord
        {
            get { return _NORecord; }
            set
            {
                this.OnPropertyValueChange(_.NORecord, _NORecord, value);
                this._NORecord = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string LotNo_Prefix
        {
            get { return _LotNo_Prefix; }
            set
            {
                this.OnPropertyValueChange(_.LotNo_Prefix, _LotNo_Prefix, value);
                this._LotNo_Prefix = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? LotNo_Len
        {
            get { return _LotNo_Len; }
            set
            {
                this.OnPropertyValueChange(_.LotNo_Len, _LotNo_Len, value);
                this._LotNo_Len = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.ExamPlaceSpecialityKindsMappingID,
				_.GroupNo};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.ExamPlaceSpecialityKindsMappingID,
				_.GroupNo,
				_.GroupName,
				_.ExamLevel,
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.Sort,
				_.TotalAcount,
				_.ActualAcount,
				_.OpenAcount,
				_.IsActive,
				_.BeginNum,
				_.NORecord,
				_.ExamYear,
				_.LotNo_Prefix,
				_.LotNo_Len};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._ExamPlaceSpecialityKindsMappingID,
				this._GroupNo,
				this._GroupName,
				this._ExamLevel,
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._Sort,
				this._TotalAcount,
				this._ActualAcount,
				this._OpenAcount,
				this._IsActive,
				this._BeginNum,
				this._NORecord,
				this._ExamYear,
				this._LotNo_Prefix,
				this._LotNo_Len};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ExamPlaceSpecialityKindsMappingID = DataUtils.ConvertValue<string>(reader["ExamPlaceSpecialityKindsMappingID"]);
            this._GroupNo = DataUtils.ConvertValue<string>(reader["GroupNo"]);
            this._GroupName = DataUtils.ConvertValue<string>(reader["GroupName"]);
            this._ExamLevel = DataUtils.ConvertValue<int>(reader["ExamLevel"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
            this._Sort = DataUtils.ConvertValue<string>(reader["Sort"]);
            this._TotalAcount = DataUtils.ConvertValue<int?>(reader["TotalAcount"]);
            this._ActualAcount = DataUtils.ConvertValue<int?>(reader["ActualAcount"]);
            this._OpenAcount = DataUtils.ConvertValue<int?>(reader["OpenAcount"]);
            this._IsActive = DataUtils.ConvertValue<string>(reader["IsActive"]);
            this._BeginNum = DataUtils.ConvertValue<string>(reader["BeginNum"]);
            this._NORecord = DataUtils.ConvertValue<string>(reader["NORecord"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._LotNo_Prefix = DataUtils.ConvertValue<string>(reader["LotNo_Prefix"]);
            this._LotNo_Len = DataUtils.ConvertValue<int?>(reader["LotNo_Len"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ExamPlaceSpecialityKindsMappingID = DataUtils.ConvertValue<string>(row["ExamPlaceSpecialityKindsMappingID"]);
            this._GroupNo = DataUtils.ConvertValue<string>(row["GroupNo"]);
            this._GroupName = DataUtils.ConvertValue<string>(row["GroupName"]);
            this._ExamLevel = DataUtils.ConvertValue<int>(row["ExamLevel"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
            this._Sort = DataUtils.ConvertValue<string>(row["Sort"]);
            this._TotalAcount = DataUtils.ConvertValue<int?>(row["TotalAcount"]);
            this._ActualAcount = DataUtils.ConvertValue<int?>(row["ActualAcount"]);
            this._OpenAcount = DataUtils.ConvertValue<int?>(row["OpenAcount"]);
            this._IsActive = DataUtils.ConvertValue<string>(row["IsActive"]);
            this._BeginNum = DataUtils.ConvertValue<string>(row["BeginNum"]);
            this._NORecord = DataUtils.ConvertValue<string>(row["NORecord"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._LotNo_Prefix = DataUtils.ConvertValue<string>(row["LotNo_Prefix"]);
            this._LotNo_Len = DataUtils.ConvertValue<int?>(row["LotNo_Len"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping");
            /// <summary>
            /// 考点-专业映射表主键
            /// </summary>
            public readonly static Field ExamPlaceSpecialityKindsMappingID = new Field("ExamPlaceSpecialityKindsMappingID", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考点-专业映射表主键");
            /// <summary>
            /// 考试时间段编号
            /// </summary>
            public readonly static Field GroupNo = new Field("GroupNo", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考试时间段编号");
            /// <summary>
            /// 考试时间段名称
            /// </summary>
            public readonly static Field GroupName = new Field("GroupName", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考试时间段名称");
            /// <summary>
            /// 考试级别
            /// </summary>
            public readonly static Field ExamLevel = new Field("ExamLevel", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考试级别");
            /// <summary>
            /// 考点编码
            /// </summary>
            public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考点编码");
            /// <summary>
            /// 专业编码
            /// </summary>
            public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "专业编码");
            /// <summary>
            /// 排序
            /// </summary>
            public readonly static Field Sort = new Field("Sort", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "排序");
            /// <summary>
            /// 最大考试人数
            /// </summary>
            public readonly static Field TotalAcount = new Field("TotalAcount", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "最大考试人数");
            /// <summary>
            /// 实际考试人数
            /// </summary>
            public readonly static Field ActualAcount = new Field("ActualAcount", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "实际考试人数");
            /// <summary>
            /// 开放人数
            /// </summary>
            public readonly static Field OpenAcount = new Field("OpenAcount", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "开放人数");
            /// <summary>
            /// 是否开放
            /// </summary>
            public readonly static Field IsActive = new Field("IsActive", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "是否开放");
            /// <summary>
            /// 抽签初始序号
            /// </summary>
            public readonly static Field BeginNum = new Field("BeginNum", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "抽签初始序号");
            /// <summary>
            /// 抽签号
            /// </summary>
            public readonly static Field NORecord = new Field("NORecord", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "抽签号");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "考试年度");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field LotNo_Prefix = new Field("LotNo_Prefix", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "LotNo_Prefix");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field LotNo_Len = new Field("LotNo_Len", "TB_Sys_ExamPlaceSpecialityKindsGroupMapping", "LotNo_Len");
        }
        #endregion


    }
}



